/*******************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     sliderBar.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-04
  * @brief    This file contains the functions prototypes for the UartTFT
  *           Application display firmware.
 ********************************************************************************/

#ifndef SLIDERBAR_H_
#define SLIDERBAR_H_
#include "type.h"
#include "data.h"
#include "module_select.h"

/*sliding bar*/
typedef struct
{
	uint16_t Code; // Function code
	uint8_t len;   // lenght
	uint16_t x1;   // background coordinate on screen
	uint16_t y1;
	uint16_t bgid; // background picture id
	uint16_t x2;   // sliding bar coordinate on screen
	uint16_t y2;
	uint16_t slideid; // sliding bar picture id
	uint16_t Xs;	  // upper left corner coordinate
	uint16_t Ys;
	uint16_t Xe; // Lower right corner coordinate
	uint16_t Ye;
	uint16_t p_add;	   // variable pointer
	uint16_t arrowid;  // touch icon id
	uint8_t direction; // sliding direction
	uint16_t lastx;
	uint16_t lasty;
	uint16_t dx;
	uint16_t dy;
	int16_t V_min; // lower limit
	int16_t V_max; // upper limit
} Slide_Info;
extern Slide_Info gSlide_Info[];
extern uint8_t Slide_count;
extern uint8_t Slide_flag;
extern uint8_t slide_first_touch;
extern uint8_t slide_num;

extern void Progress_bar_sliding(void);
extern void Disp_slide(uint8_t i);

extern int VOL_flag;
extern int Mega_bass_flag;
extern int Brightness_flag;

extern uint8_t fanhui_flag;
extern uint32_t fanhui_timesum;
extern uint8_t BassFH_flag;
extern uint32_t BassFH_time;


#endif /* SLIDERBAR_H_ */
